#include <stdio.h>
 void init(int arr[], int x)
{
	int i = 0;
	for (i = 0; i < x; i++)
	{
		arr[i] = 0;
	}

}

 void printf(int arr[], int y)
 {
	 for ( int i = 0; i < y; i++)
	 {
		 printf("%d ", arr[i]);
	 }
 }

 void reverse(int arr[], int r)
 {
	 int leaft = 0;
	 int right = r-1;
	 int t = 0;
	 while (leaft < right)
	 {
		 int t = arr[leaft];
		 arr[leaft] =arr[right];
		 arr[right] =arr[leaft];
		 leaft++;
		 right--;
	 }

 }

int main()
{
	int arr[10] = {0,1,2,3,4,5,6,7,8,9};
	int i = 0;
	int a = sizeof(arr) /sizeof(arr[0]);
	init(arr, a);
	printf(arr, a);
	printf("\n");
	reverse(arr, a);
	printf(arr, a);
	return 0;
}